/**
 * 
 */
package edu.hadassah.store.management;

import edu.hadassah.store.order.IOrder;
import edu.hadassah.store.order.IOrderFactory;
import edu.hadassah.store.order.IOrderInfo;
import edu.hadassah.store.uniqueid.UniqueId;

/**
 * @author persikov
 *
 */
public class OrderFactoryBasic implements IOrderFactory {

	private static long idCounter = 0;
	/**
	 * @param orderInfo
	 * @return
	 * @see edu.hadassah.store.order.IOrderFactory#createOrder(edu.hadassah.store.order.IOrderInfo)
	 */
	public IOrder createOrder(IOrderInfo orderInfo) {
		return new Order(new UniqueId("Order #"+(idCounter++)), orderInfo);
	}

}
